/*
 * @Description:
 * @Author: Zzt
 * @Date: 2022-11-10 16:51:31
 * @LastEditTime: 2022-12-15 15:14:14
 */
import { SET_TABLE_DATA, SET_CHART_DATA } from '../constants';

export const AcceptanceCheckReducer = (state, action) => {
  switch (action.type) {
    case SET_TABLE_DATA:
      return {
        ...state,
        dataList: action.data
      };
    case SET_CHART_DATA:
      return {
        ...state,
        chartList: action.data
      };
    default:
      console.log('untouched', action);
      return state;
  }
};
